<include file="Public:header" />

    <table class="table table-bordered table-hover definewidth m10">
        <tr>
            <td width="10%" class="tableleft">设备编号</td>
            <td>{$equipment.number}</td>
        </tr>

        <tr>
            <td class="tableleft">设备名称</td>
            <td>{$equipment.name}</td>
        </tr>

        <tr>
            <td class="tableleft">生产厂家</td>
            <td>{$equipment.source}</td>
        </tr>
        <tr>
            <td class="tableleft">添加信息</td>
            <td>
                {$equipment.reg_time|date='Y-m-d',###}
            </td>
        </tr>
        <tr>
            <td class="tableleft">设备信息</td>
            <td>
                {$equipment.info}
            </td>
        </tr>
        <tr>
            <td class="tableleft">操作人</td>
            <td>
               {$equipment.uname|default=$equipment.nickname}
            </td>
        </tr>
        <tr>
            <td class="tableleft"></td>
            <td>
                <button type="button" class="btn btn-primary" type="button" id="edit-equ">修改</button> &nbsp;&nbsp;<button type="button" class="btn btn-success" name="backid" id="backid">返回列表</button>
            </td>
        </tr>
    </table>

<script>
    $(function () {
        $('#backid').click(function(){
            window.location.href="{:U('Home/Equipment/Index')}";
        });
        $('#edit-equ').click(function(){
            window.location.href="{:U('Home/Equipment/edit',array('equid'=>$equipment['equipment_id']))}";
        });

    });
</script>

<include file="Public:footer" />